﻿using System.Configuration;

namespace Hotpot.Configuration
{
    public class HotpotConfigurationSection : ConfigurationSection
    {
        [ConfigurationProperty("instanceName", IsRequired = true)]
        public string InstanceName
        {
            get
            {
                return (string)this["instanceName"];
            }
            set
            {
                this["instanceName"] = value; 
            }
        }

        [ConfigurationProperty("modules")]
        public HotpotModuleConfigurationElementCollection Modules
        {
            get
            {
                return (HotpotModuleConfigurationElementCollection)this["modules"];
            }
            set
            {
                this["modules"] = value;
            }
        }

        [ConfigurationProperty("plugins")]
        public HotpotPluginConfigurationElement Plugins
        {
            get
            {
                return (HotpotPluginConfigurationElement)this["plugins"];
            }
            set
            {
                this["plugins"] = value;
            }
        }
    }
}
